package com.nervenets.web.hibernate.dao;

import com.nervenets.web.hibernate.domain.user.User;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;
import org.springframework.stereotype.Repository;

@Repository
public interface UserDao extends JpaRepository<User, Long>, JpaSpecificationExecutor<User> {
    User findUserByOpenId(String openId);

    User findUserByUnionId(String unionId);

    User findByMobile(String mobile);
}
